package com.student.jps.dao;

import com.student.jps.entity.Student;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface StudentDao extends JpaRepository<Student,Integer> {


    List<Student> findByNameLike(String name);

    Page<Student> findBySexLike(String sex, Pageable pageable);
}
